﻿using System.Collections.Generic;

namespace 自动化设备状态机
{
    public struct MoveParam
    {
        public MoveParam(List<int> axisList, List<double> positionList, Speed speed, bool isRelMove = false, bool interpolation = false, long overTime = 8000)
        {
            AxisList = axisList;
            PositionList = positionList;
            IsRelMove = isRelMove;
            Interpolation = interpolation;
            OverTime = overTime;
            Speed = speed;
        }

        public List<int> AxisList { get; set; }

        public List<double> PositionList { get; set; }

        public bool IsRelMove { get; set; }
        public bool Interpolation { get; set; }

        public long OverTime { get; set; }

        public Speed Speed { get; set; }
    }

    public struct CylinderParam
    {
        public CylinderParam(List<int> doList, List<bool> doValue, List<int> diList, List<bool> diValue, long overTime = 5000)
        {
            DoList = doList;
            DiList = diList;
            DoValue = doValue;
            DiValue = diValue;
            OverTime = overTime;
        }

        public List<int> DoList { get; set; }
        public List<int> DiList { get; set; }

        public List<bool> DoValue { get; set; }

        public List<bool> DiValue { get; set; }

        public long OverTime { get; set; }
    }
}
